<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <style type="text/css">
        .paging{ margin-top:20px;}
        .paging a{ display:inline-block; padding:2px 6px; border:1px solid #bbb; margin-left:3px; text-decoration: none;}
        .page{border-bottom:2px solid #5075C3; width:1440px;}
        .clear{ clear:both;}
    </style>
</head>
<body>
<div class="center">
    <div class="paging" style="margin: 10px">总数：<b>{{$paginator->total()}}</b>&nbsp;
        @if ($paginator->hasPages())
            @if ($paginator->onFirstPage())
                <a style="color: grey">&lt;&nbsp;上一页</a>
            @else
                <a href="{{$paginator->previousPageUrl()}}">&lt;&nbsp;上一页</a>
            @endif
            @foreach ($elements as $element)
                @if (is_string($element))
                    <a>{{ $element }}</a>
                @endif
                @if (is_array($element))
                    @foreach ($element as $page => $url)
                        @if ($page == $paginator->currentPage())
                            <a class="on" style="color: grey;">{{$page}}</a>
                        @else
                            <a  href="{{$url}}">{{$page}}</a>
                        @endif
                    @endforeach
                @endif
            @endforeach
            @if ($paginator->hasMorePages())
                <a href="{{$paginator->nextPageUrl()}}">下一页&nbsp;></a>
            @else
                <a style="color: grey">下一页</a>
            @endif
            <div class="clear"></div>
    </div>
    @endif
</div>
</body>
</html>
